(echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > $@ || (rm -f $@ ; exit 1)' ) >> /tmp/dep
echo Edit Makefile and bring in /tmp/dep
-VERSIONU=1_2_2_beta02222004
-VERSIOND=1.2.2_beta02222004
+VERSIONU=1_2_2_beta03112004
+VERSIOND=1.2.2_beta03112004
#VERSIONU=1_2_1
#VERSIOND=1.2.1
void route_add_head(route_head *rte);
void track_add_head(route_head *rte);
void route_disp_all(route_hdr, route_trl, waypt_cb);
+void track_disp_all(route_hdr, route_trl, waypt_cb);
void route_free (route_head *);
void route_flush( queue *);
void route_flush_all(void);
unsigned int route_waypt_count(void);
unsigned int route_count(void);
+unsigned int track_count(void);
/*
* All shortname functions take a shortname handle as the first arg.
char *strsub(char *s, char *search, char *replace);
void rtrim(char *s);
signed int get_tz_offset(void);
+signed int month_lookup(const char *m);
const char *get_cache_icon(const waypoint *waypointp);
char * xml_entitize(const char * str);
char * strip_html(const utf_string*);
nroutepts = GPS_Command_Get_Route(portname, &array);
- fprintf(stderr, "Routes %d\n", nroutepts);
+ fprintf(stderr, "Routes %d\n", (int) nroutepts);
#if 1
for (i = 0; i < nroutepts; i++) {
route_head *rte_head;
case tt_cache_desc_short:
tag_cache_desc(attr);
break;
+ default:
+ break;
}
if (passthrough) {
start_something_else(el, attr);
end_something_else();
*s = 0;
return;
+ default:
+ break;
}
if (passthrough)
static void
gpx_track_hdr(const route_head *rte)
{
- char * tmp_ent;
-
fprintf(ofd, "<trk>\n");
write_optional_xml_entity(ofd, " ", "name", rte->rte_name);
write_optional_xml_entity(ofd, " ", "desc", rte->rte_desc);
static void
gpx_route_hdr(const route_head *rte)
{
- char * tmp_ent;
-
fprintf(ofd, "<rte>\n");
write_optional_xml_entity(ofd, " ", "name", rte->rte_name);
write_optional_xml_entity(ofd, " ", "desc", rte->rte_desc);
waypoint *wpt_tmp;
char ibuf[122];
struct tm tm;
- route_head *track_head;
+ route_head *track_head = NULL;
for(;fgets(ibuf, sizeof(ibuf), file_in);) {
switch (ibuf[0]) {
void
routesimple_init(const char *args) {
- char *fm;
-
count = 0;
if (countopt) {
*/
#include "defs.h"
+#include <string.h>
#include "jeeps/gpsmath.h" /* for datum conversions */
#define MYNAME "TPG"
}
}
+/*
+ * Return the (zero based) month number of the year or -1 for failure.
+ */
signed int
month_lookup(const char *m)
{
* Additional information for V1.
* Output format type at front of line.
*/
+static void
disp_v1(ff_type t)
{
char *tstring;